import request from '@/utils/request'

export default {
  //获取配置信息
  getWebsiteConfig() {
    return request({
      url: `/admin/websiteConfig`,
      method: 'get',
    })
  },
  //更新配置信息
  updateWebsiteConfig(websiteConfig) {
    return request({
      url: `admin/websiteConfig`,
      method: 'put',
      data: websiteConfig
    })
  },
  //后台首页信息
  getBlogInfoBack() {
    return request({
      url: `admin`,
      method: 'get',
    })
  },
  //查询关于我
  getAbout() {
    return request({
      url: `about`,
      method: 'get',
    })
  },
  //修改关于我
  updateAbout(about) {
    return request({
      url: `admin/about`,
      method: 'put',
      data: about
    })
  },
  //地区用户
  userAreaList(condtion){
    return request({
      url: `admin/user/area`,
      method: 'get',
      params: condtion
    })
  }
}